package com.base.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Table(name = "tb_rec_ad")
@ApiModel(value = "RecAdvert-楼层广告对象", description = "楼层广告类")
public class RecAdvert implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一ID
     */
    @Id
    @Column(name = "advert_id")
    @ApiModelProperty(value = "楼层广告id", name = "advertId", required = true, dataType = "Integer")
    private Integer advertId;

    /**
     * 楼层ID
     */
    @Column(name = "floor_id")
    @ApiModelProperty(value = "楼层id", name = "floorid", required = true, dataType = "Integer")
    private Integer floorid;

    /**
     * 楼层广告标题
     */
    @Column(name = "title")
    @ApiModelProperty(value = "楼层广告标题", name = "title", required = true, dataType = "String")
    private String title;

    /**
     * 楼层广告连接
     */
    @Column(name = "url")
    @ApiModelProperty(value = "楼层广告连接", name = "url", required = true, dataType = "String")
    private String url;

    /**
     * 楼层广告图片
     */
    @Column(name = "pic")
    @ApiModelProperty(value = "楼层广告图片", name = "pic", required = true, dataType = "String")
    private String pic;

    /**
     * 楼层广告状态
     */
    @Column(name = "status")
    @ApiModelProperty(value = "楼层广告状态", name = "status", required = true, dataType = "Integer")
    private Integer status;

    /**
     * 楼层广告排序
     */
    @Column(name = "sort_order")
    @ApiModelProperty(value = "楼层广告排序", name = "sortOrder", required = true, dataType = "Integer")
    private Integer sortOrder;

    /**
     * 楼层广告类型
     */
    @Column(name = "type")
    @ApiModelProperty(value = "楼层广告类型 1、右侧边栏广告 2、左侧边栏广告", name = "type", required = true, dataType = "Integer")
    private Integer type;

}
